/* 
 * Copyright (C), 2016-2020, 厦门盈欣宝金融信息服务有限公司
 * Project Name :boot-parent
 * File Name: org.easytouseit.redis.service
 * Encoding UTF-8 
 * Version: 1.0 
 * Date: 2018-09-14 15:10
 * History:  
 * 1. Date: 2018-09-14
 *    Author: guojm 
 *    Modification: 新建
 * 2. ...
 */
package org.easytouseit.redis.service;

import java.util.List;
import java.util.Set;

/**
 * redis 缓存接口
 *
 * @author guojm
 * @version V1.0
 * @date 2018-09-14
 */
public interface RedisService {

    boolean set(final String key, Object value);
    boolean set(final String key, Object value, Long expireTime);
    void remove(final String... keys);
    void removePattern(final String pattern);
    void remove(final String key);
    boolean exists(final String key);
    Object get(final String key);
    void hmSet(String key, Object hashKey, Object value);
    Object hmGet(String key, Object hashKey);
    void lPush(String k, Object v);
    List<Object> lRange(String k, long l, long l1);
    void add(String key, Object value);
    Set<Object> setMembers(String key);
    void zAdd(String key, Object value, double scoure);
    Set<Object> rangeByScore(String key, double scoure, double scoure1);
}
